<!--@if(!$is_logged)-->
<div class="mobile_list_title">로그인후 이용 가능 합니다.</div>	
<!--@else-->
{@
	$oDB = &DB::getInstance();
	$query = $oDB->_query("SELECT * FROM yman_documents where module_srl=76 and member_srl=".$logged_info->member_srl);
	$result = $oDB->_fetch($query);
	if(!is_array($result)) $result = array($result);
}
<div class="mobile_list_title">{$logged_info->user_name} 님의 주문 내역 입니다.</div>
<table cellspacing="0" border="1" class="mobile_list_table">
	<caption></caption>
	<thead>
	    <tr style="background:#fff">
	        <th class="title" width="8%">
	        	<div>NO</div>
	        </th>
	        <th class="title" width="22%">
		        <div>주문일자</div>
	        </th>
			<th class="title" width="20%">
				<div>총 주문 금액</div>
			</th>
			<th class="title" width="40%">
				<div>주문 내용</div>
			</th>
	    </tr>
	</thead>
	<tbody>
	    <!--@foreach($result as $no => $oDocument)-->
{@
	$oDB2 = &DB::getInstance();
	$query2 = $oDB2->_query("SELECT * FROM yman_document_extra_vars where module_srl=76 and document_srl=".$oDocument->document_srl);
	$result2 = $oDB2->_fetch($query2);
	if(!is_array($result2)) $result2 = array($result2);
}	    
	    <tr>
	        <td>{$no+1}</td>
	        <td class="nowrap">{$oDocument->regdate[0].$oDocument->regdate[1].$oDocument->regdate[2].$oDocument->regdate[3]." / ".$oDocument->regdate[4].$oDocument->regdate[5]." / ".$oDocument->regdate[6].$oDocument->regdate[7]}</td>
{@
	$price_arr = explode("|", $result2[5]->value);
	$price_sum = 0;
}
<!--@foreach($price_arr as $test)-->
	{@
		$price_sum += $test;
	}
<!--@end-->
	        <td>{$price_sum} 원</td>
	        
	{@
		$arr = Array();
		$row = Array();
		$value = $result2[0]->value;
		$arr = explode("&&", $value);
	}
	<!--@for($i=0; $i<count($arr); $i++)-->
		{@
			$row[$i] = explode("|", $arr[$i]);
		}
	<!--@end-->	        
			<td>
				<!--@for($i=0; $i<count($row)-1; $i++)-->
				{$row[$i][2]} * {$row[$i][3]} = {$row[$i][4]} 원 <br />
				<!--@end-->
			</td>
	    </tr>
	    <!--@end-->
	</tbody>
</table>
<!--@end-->